// Filename: 3DVIEW.H

/*****************    3D Viewer Header    *****************************\
  
  1993 (c) CDI UI, The USSR Academy of Sciences, Samara

\**********************************************************************/

#ifndef __3DVIEW_H
#define __3DVIEW_H

// view3D function returns:

enum {
  dvOk,			// No errors, picture is on the screen.
  dvNoMemory,		// Not enough core memory.
  dvBadType,		// Type of picture is not equal 8, 16, 32.
  dvNotOpen,		// The picture file is absent.
};

/*
  Parameters description 
  ----------------------
    picName                  - Picture file name.
    left, top, right, bottom - Window coordinates for surface drawing.
    simpleNum                - Number of points per side ( max == 70 ).
    horAngle, verAngle       - Rotation angles 
                               around horizontal and vertical axes.
    interactive	             - 1 - image may be rotated,
                               0 - draw the surface only.
*/

int view3D( char *picName,
	    int left, int top, int right, int bottom,
	    int simpleNum,
	    int horAngle=20, int verAngle=40,
	    int interactive=1
	  );
#endif // __3DVIEW_H
